import Vue from 'vue'
import Router from 'vue-router'
import routes from './routes.js'

Vue.use(Router)

export default new Router({
  	routes,
	scrollBehavior (to, from, savedPosition) {  //因为当前非单页面应用的关系，页面跳转不能保证滚动条回到原处
		return {
			x: 0, 
			y: 0 
		}
	}
});
